package com.ruoyi.mdkt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author gwl
 * @since 2022-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Task extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 课程ID
     */
    private Long courseId;
    /**
     * 教师ID
     */
    private Long teacherUserId;
    /**
     * 1：平时成绩；2：作业成绩
     */
    private Integer type;

    /**
     * 任务名
     */
    private String taskName;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 任务封面
     */
    private String url;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
